package grafica.manejoImagenes;

import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JPanel;


public class ImagenRegistros extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private ImageIcon imagen;

	public ImagenRegistros()
	{
		imagen = new ImageIcon("Imagenes/registro.jpg");
		super.setSize(600,400);
	}

	@Override
	public void paint (Graphics g)
	{
		if (imagen != null)
		{
			g.drawImage(imagen.getImage(), 0, 0, super.getWidth(), super.getHeight(), this);
			super.setOpaque(false);
			super.paint(g);
		}
	}

}
